﻿<UserControl
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    xmlns:PilotOS_Controls="clr-namespace:PilotOS.Controls"
    mc:Ignorable="d"
    x:Class="PilotOS.PilotOSGame"
    FontFamily="{StaticResource PhoneFontFamilyNormal}"
    FontSize="{StaticResource PhoneFontSizeNormal}"
    Foreground="{StaticResource PhoneForegroundBrush}"
    d:DesignHeight="696"
    d:DesignWidth="496">

    <Grid
        x:Name="LayoutRoot">

        <Grid x:Name="_ground" Margin="-1390,-1060,-1810,-860" d:LayoutOverrides="Height">
        	<Grid.ColumnDefinitions>
        		<ColumnDefinition Width="Auto" MinWidth="480"/>
        	</Grid.ColumnDefinitions>
        	<Grid.RowDefinitions>
        		<RowDefinition Height="Auto" MinHeight="480"/>
        	</Grid.RowDefinitions>
    		<Image
    			x:Name="_groundBackground"
    			Source="Assets/ground_plain.png"
    			Stretch="None" RenderTransformOrigin="0.5,0.5" Margin="0" HorizontalAlignment="Center" VerticalAlignment="Center" />
    		<Rectangle x:Name="_landingArea" Margin="1526,700,1522,685" Stroke="Red" StrokeThickness="14" d:LayoutOverrides="HorizontalAlignment, VerticalAlignment"/>
    		<Rectangle x:Name="_landingArea_Copy" Margin="1526,700,1522,685" Stroke="Red" StrokeThickness="14" d:LayoutOverrides="HorizontalAlignment, VerticalAlignment"/>

    	</Grid>

        <StackPanel
            x:Name="_controls"
            HorizontalAlignment="Center"
            VerticalAlignment="Bottom" d:IsHidden="True">
            <Button x:Name="_down" Content="down" Width="150"
                Click="_down_Click" />
            <StackPanel Height="69" Orientation="Horizontal">
        		<Button
        			x:Name="_left"
        			Content="left"
        			Width="150"
        			Click="_left_Click" ClickMode="Press" d:LayoutOverrides="Height" />
        		<Button
        			x:Name="_right"
        			Content="right"
        			Width="150"
        			Click="_right_Click" ClickMode="Press" d:LayoutOverrides="Height" />
        	</StackPanel>
            <Button x:Name="_up" Content="up" Width="150"
                Click="_up_Click" />
        </StackPanel>
        <StackPanel
            x:Name="_infos"
            HorizontalAlignment="Left"
            VerticalAlignment="Top" d:IsHidden="True">
            <TextBlock
                x:Name="_speedLabel"
                TextWrapping="Wrap"
                Text="Speed" FontWeight="Bold" />
            <TextBlock
                x:Name="_speed"
                Margin="0,0,16,0"
                TextWrapping="Wrap"
                Text="TextBlock"
                VerticalAlignment="Top"
                d:LayoutOverrides="Width" />
            <TextBlock
                x:Name="_altitudeLabel"
                TextWrapping="Wrap"
                Text="Altitude" FontWeight="Bold" />
            <TextBlock
                x:Name="_altitude"
                Margin="0,0,16,0"
                TextWrapping="Wrap"
                Text="{Binding Altitude, ElementName=_plane, Mode=TwoWay}"
                VerticalAlignment="Top"
                d:LayoutOverrides="Width" />
            <TextBlock x:Name="_angleLable" TextWrapping="Wrap" Text="Angle" FontWeight="Bold"/>
            <TextBlock x:Name="_angle" TextWrapping="Wrap" Text="TextBlock"/>
            <TextBlock x:Name="_centerXLabel" TextWrapping="Wrap" Text="CenterX" FontWeight="Bold"/>
            <TextBlock x:Name="_centerX" TextWrapping="Wrap" Text="TextBlock"/>
            <TextBlock x:Name="_centerYLabel" TextWrapping="Wrap" Text="CenterY" FontWeight="Bold"/>
            <TextBlock x:Name="_centerY" TextWrapping="Wrap" Text="TextBlock"/>
            <TextBlock x:Name="_landingAreaLabel" TextWrapping="Wrap" Text="Landing Area" FontWeight="Bold"/>
            <TextBlock x:Name="_landingAreaCoords" TextWrapping="Wrap" Text="TextBlock"/>
        </StackPanel>

        <PilotOS_Controls:PlaneControl
            x:Name="_plane"
            HorizontalAlignment="Center"
            VerticalAlignment="Center" d:IsHidden="True" />
        <StackPanel HorizontalAlignment="Right" VerticalAlignment="Top" d:IsHidden="True">
        	<TextBlock x:Name="_accX" TextWrapping="Wrap" Text="TextBlock"/>
        	<TextBlock x:Name="_accY" TextWrapping="Wrap" Text="TextBlock"/>
        	<TextBlock x:Name="_accZ" TextWrapping="Wrap" Text="TextBlock"/>
        </StackPanel>

    </Grid>
</UserControl>
